var rateButton = document.getElementById("rate_button");
var rateCrossButton = document.getElementById("ratepage_cross_button");
var ratepage = document.getElementsByClassName("ratepage")[0];

rateButton.addEventListener("click", clickRateButton);
rateCrossButton.addEventListener("click", clickRateCrossButton);

function clickRateButton() {
    ratepage.style = "display:block";
}

function clickRateCrossButton() {
    ratepage.style = "display:none";
}